package com.dc.ssjt.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dc.ssjt.entity.Account;

import java.math.BigDecimal;

/**
 * 服务接口
 *
 * @author duchao
 */
public interface AccountService extends IService<Account> {

    /**
     * 扣除账户钱
     *
     * @param userId 用户id
     * @param money  扣款金额
     */
    void decrease(Long userId, BigDecimal money);
}
